<?php
//declare(encoding='UTF-8');

  class OrderList{
		
		private $orderList = array();
		private $couponCode = null;
		private $gift = false;
		private $orderId = null;
		
 
		public function insertOrder($productId, &$order){
			$this->orderList[$productId] = $order;
		}
		
		public function getOrderList(){
			return $this->orderList;
		}
		
		public function removeOrder($productId){
			unset($this->orderList[$productId]);			
		}
		
		public function countOrder(){
		 return count($this->orderList);
		}
		
		public function setCouponCode($coupon){
			$this->couponCode = $coupon;
		}
		
		public function getCouponCode(){
			return $this->couponCode;
		}
		
		public function setGift($giftWrap){
			$this->gift = $giftWrap;
		}
		
		public function isGift(){
			return $this->gift;
		}
		
		public function setOrderId($orderId){
			$this->orderId = $orderId;
		}
		
		public function getOrderId(){
			return $this->orderId;
		}
		
	}

?>